3/1/2021

Plotly graph code

Below is the plotly code for scatter graph for top 100 universities that shows the number of citations and their rankings. World Universities Data

fig <- top_univ %>%
      plot_ly(y = ~citations, x = ~ranking,
              text=~university_name, hoverinfo="text") %>%
            add_markers(color = ~country, 
                        colors=mycolors,frame = ~year)
fig

Use the right arrow to view the next slide.

Citations vs. Ranking

Slide or Play to see top universities over the years for each country listed. Hover over the data points to see the university.